package classloader;

import java.lang.String;

public class ClassLoaderTest {
    public static void main(String[] args) {
        ClassLoader classLoader = String.class.getClassLoader();
        try {
            System.out.println("classLoader = " + classLoader);

            Class<Integer> integerClass = (Class<Integer>) classLoader.loadClass("java.lang.Integer");
            System.out.println("type = " + integerClass.getGenericSuperclass().getTypeName());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
